<script lang="ts" setup>
import { useElementPlusDesignTokens } from '@vben/hooks';

import { ElConfigProvider } from 'element-plus';

import { elementLocale } from '#/locales';

defineOptions({ name: 'App' });

useElementPlusDesignTokens();
</script>

<template>
  <ElConfigProvider :locale="elementLocale">
    <RouterView />
  </ElConfigProvider>
</template>

<style>
.dialog-title.el-dialog {
  padding: 0;
}

.dialog-title .el-dialog__header {
  padding: 0;
  margin-right: 0;
  background-color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  .el-dialog__title,
  .el-dialog__headerbtn .el-dialog__close {
    align-items: center;
    justify-content: center;
    color: #747474;
  }
}

.dialog-title .el-dialog__body {
  padding: 0;
  background-color: #fff;
}

.dialog-title .el-dialog__footer {
  padding: 10px;
  background-color: #fff;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
</style>
